#include <sys/types.h>
#include <signal.h>

#include <iostream>
using namespace std ;

int main ()
{
    pid_t targetPid  ;
    cout<< "Input the process ID you want to send signal:" ;
    cin >> targetPid ;

    while(1)
    {
        kill(targetPid, SIGUSR1) ;
        kill(targetPid, SIGUSR2) ;

        sleep(1) ;
    }

    return 0 ;
}


